package com.hivemq.extensions.rbac.model;

/**
 * @Author: Zhang.Jialei
 * @Date: 2020/8/5 9:15
 */
public class Device {
    /** 自增主键 */
    private Long id;
    /** 设备秘钥 */
    private String device_key;
    /** 产品key*/
    private String product_key;
    /** 产品秘钥 */
    private String product_secret;
    /** 组 **/
    private String group_key;
    /** 组秘钥 **/
    private String group_secret;
    /** 用户 **/
    private String user_key;
    /** 用户秘钥 **/
    private String user_secret;
    /** 心跳 */
    private int heart = -1;
    /** 登陆离线时间 */
    private Long connect_time;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getDevice_key() {
        return device_key;
    }

    public void setDevice_key(String device_key) {
        this.device_key = device_key;
    }

    public String getProduct_key() {
        return product_key;
    }

    public void setProduct_key(String product_key) {
        this.product_key = product_key;
    }

    public String getProduct_secret() {
        return product_secret;
    }

    public void setProduct_secret(String product_secret) {
        this.product_secret = product_secret;
    }

    public String getGroup_key() {
        return group_key;
    }

    public void setGroup_key(String group_key) {
        this.group_key = group_key;
    }

    public String getGroup_secret() {
        return group_secret;
    }

    public void setGroup_secret(String group_secret) {
        this.group_secret = group_secret;
    }

    public String getUser_key() {
        return user_key;
    }

    public void setUser_key(String user_key) {
        this.user_key = user_key;
    }

    public String getUser_secret() {
        return user_secret;
    }

    public void setUser_secret(String user_secret) {
        this.user_secret = user_secret;
    }

    public int getHeart() {
        return heart;
    }

    public void setHeart(int heart) {
        this.heart = heart;
    }

    public Long getConnect_time() {
        return connect_time;
    }

    public void setConnect_time(Long connect_time) {
        this.connect_time = connect_time;
    }

    public String getPath() {
        return "product_key='" + product_key + '\'' +
                ", group_key='" + group_key + '\'' +
                ", user_key='" + user_key + '\'' +
                ", device_key='" + device_key + '\'' ;
    }


}
